package com.nidu.demo.notice.gateway;

import com.alibaba.cola.dto.PageResponse;
import com.nidu.demo.notice.model.Notice;
import com.nidu.demo.notice.model.NoticeCriteria;

import java.util.List;
import java.util.Set;

/**
 * 通知公告网关接口
 *
 * @author auto
 */
public interface NoticeGateway {

    Notice create(Notice notice);

    Notice update(Notice notice);

    void deleteById(Long id);

    void deleteByIds(Set<Long> ids);

    Notice getById(Long id);

    List<Notice> getByIds(Set<Long> ids);

    List<Notice> listByCondition(NoticeCriteria criteria);

    PageResponse<Notice> pageByCondition(NoticeCriteria criteria);

    void updateStatus(Long id, Integer status);

}
